import Vue from 'vue'

Vue.prototype.$successMsg = function (message = '') {
    this.$message({
        message,
        type: 'success',
        duration: 5000
    })
}
Vue.prototype.$errorMsg = function (message = '') {
    this.$message({
        message,
        type: 'error',
        duration: 5000
    })
}
Vue.prototype.$warnMsg = function (message = '') {
    this.$message({
        message,
        type: 'warning',
        duration: 5000
    })
}